import {createAppContainer, createSwitchNavigator} from 'react-navigation'

import {createStackNavigator} from 'react-navigation-stack'

import HomePage from '../Pages/HomePage'
import DetailPage from '../Pages/DetailPage'
import WelcomePage from '../Pages/WelcomePage'

const InitNavigator = createStackNavigator({
    WelcomePage: {
        screen: WelcomePage,
        navigationOptions: {
            header: null
        }
    }
})

const MainNavigator = createStackNavigator({
    HomePage: {
        screen: HomePage
    },
    DetailPage: {
        screen: DetailPage
    }
})

const AppSwitchNavigator = createSwitchNavigator({
    Init: InitNavigator,
    Main: MainNavigator
})

export default createAppContainer(AppSwitchNavigator)